const uploadController = {
  async uploadImg(req, res, next) {
    console.log(req.file)
    res.send({
      code: 200,
      msg: 'ok',
      data: {
        url: `http://localhost:3000/${req?.file?.filename}`,
      },
    })
  },
}

module.exports = uploadController
